package com.oocl.invoker.client;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.oocl.invoker.entity.Goods;

@FeignClient("springCloudChart")
public interface ChartService {

	
//	@GetMapping(value="/hello/{name}")
//	String hello(@PathVariable("name") String name);
//	
//	@GetMapping(value="/call/{id}")
//	Police call(@PathVariable("id") Integer id);
	
	@GetMapping(value="/goods",produces = MediaType.APPLICATION_JSON_VALUE)
	List<Goods>getAllGoods();
	
	@GetMapping(value="/id/{id}",produces = MediaType.APPLICATION_JSON_VALUE)
	Goods addOneGoodsInChart(@PathVariable("id") Integer id);
	
	
	
	
}
